<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload = function () {
            let elementById = document.getElementById("abc");
            elementById.onsubmit = function () {
                alert("这是一个动态的错误提交提示")
                return false;
            }
        }
    </script>
</head>
<body>
    <form action="http://localhost:8080" method="get" id="abc">
        <input type="submit" value="提交事务">
    </form>
</body>
</html>